package office.action.hr.form;

import java.util.Map;

import office.bo.hr.impl.RecruitPlan;
import platform.common.bo.IIdentifiableObj;

/**
 * 招聘计划Form
 * @author ibmsz
 *
 */
public class RecruitPlanForm {
	private String id;
	private String userId;
	private String planName;		//计划名称
	private String pipeline;		//招聘渠道
	private double budgetFee;		//预算费用
	private String startDate;		//开始时间
	private String endDate;			//结束时间
	private int recruitPopulation;	//招聘人数
	private String recruitMemo;		//招聘说明
	private String recruitRemark;	//招聘备注
	
	private String recruitRequirementId;	//所属招聘需求
	private String checkUser;		//审批人
	private String state;
	
	private String entryRole;		//申请人角色
	private String checkRole;		//审批人角色
	private String entryDate;		//申请时间
	
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		RecruitPlan bo = (RecruitPlan)newObj;
		bo.setId(this.id);
		bo.setPlanName(planName);
		bo.setPipeline(pipeline);
		bo.setBudgetFee(budgetFee);
		bo.setStartDate(startDate);
		bo.setEndDate(endDate);
		bo.setRecruitPopulation(recruitPopulation);
		bo.setRecruitMemo(recruitMemo);
		bo.setRecruitRemark(recruitRemark);
		bo.setCheckUser(checkUser);
		//bo.setRecruitRequirementId(recruitRequirementId);
		return bo;
	}
	@SuppressWarnings("unchecked")
	public void copyPropertiesFromBO(IIdentifiableObj baseBO,Map map) {
		RecruitPlan bo = (RecruitPlan)baseBO;
		this.id = bo.getId().toString();
		this.planName = bo.getPlanName();
		if(null!=bo.getPipeline() && !("").equals(bo.getPipeline())){
			if(map.containsKey(bo.getPipeline())){
				this.pipeline = (String)map.get(bo.getPipeline());
			}
		}
		this.budgetFee = bo.getBudgetFee();
		this.startDate = bo.getStartDate();
		this.endDate = bo.getEndDate();
		this.recruitPopulation = bo.getRecruitPopulation();
		this.recruitMemo = bo.getRecruitMemo();
		this.recruitRemark = bo.getRecruitRemark();
		//this.recruitRequirementId = bo.getRecruitRequirementId();
		this.checkUser = bo.getCheckUser();
		this.userId = bo.getUserId();
		this.state = bo.getState();
		this.checkRole = bo.getCheckRole();
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPlanName() {
		return planName;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}

	public String getPipeline() {
		return pipeline;
	}

	public void setPipeline(String pipeline) {
		this.pipeline = pipeline;
	}

	public double getBudgetFee() {
		return budgetFee;
	}

	public void setBudgetFee(double budgetFee) {
		this.budgetFee = budgetFee;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public int getRecruitPopulation() {
		return recruitPopulation;
	}

	public void setRecruitPopulation(int recruitPopulation) {
		this.recruitPopulation = recruitPopulation;
	}

	public String getRecruitMemo() {
		return recruitMemo;
	}

	public void setRecruitMemo(String recruitMemo) {
		this.recruitMemo = recruitMemo;
	}

	public String getRecruitRemark() {
		return recruitRemark;
	}

	public void setRecruitRemark(String recruitRemark) {
		this.recruitRemark = recruitRemark;
	}

	public String getRecruitRequirementId() {
		return recruitRequirementId;
	}

	public void setRecruitRequirementId(String recruitRequirementId) {
		this.recruitRequirementId = recruitRequirementId;
	}

	public String getCheckUser() {
		return checkUser;
	}

	public void setCheckUser(String checkUser) {
		this.checkUser = checkUser;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getEntryRole() {
		return entryRole;
	}

	public void setEntryRole(String entryRole) {
		this.entryRole = entryRole;
	}

	public String getCheckRole() {
		return checkRole;
	}

	public void setCheckRole(String checkRole) {
		this.checkRole = checkRole;
	}

	public String getEntryDate() {
		return entryDate;
	}

	public void setEntryDate(String entryDate) {
		this.entryDate = entryDate;
	}

	
}
